package com.lzy.cloud.sms.constant;

public enum SmsEnum {
    juhe(1);

    private Integer code;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    SmsEnum(Integer code) {
        this.code = code;
    }

    public static SmsEnum findSmsShopByCode(Integer code) {
        for (SmsEnum smsEnum : SmsEnum.values()) {
            if (smsEnum.getCode().equals(code)) {
                return smsEnum;
            }
        }
        return null;
    }
}
